<template>
  <div>
    <div class="page-window">
      <router-view />
    </div>
    <van-tabbar route>
      <van-tabbar-item icon="wap-home-o" to="/">首页</van-tabbar-item>
      <van-tabbar-item icon="chat-o" to="/qa">问答</van-tabbar-item>
      <van-tabbar-item icon="tv-o" to="/video">视频</van-tabbar-item>
      <van-tabbar-item icon="manager-o" to="/my">我的</van-tabbar-item>
    </van-tabbar>
    
  </div>
</template>

<script>
export default {
  data () {
    return {
      
    };
  },
}
</script>

<style lang="less" scoped>
.page-window {
  // height: calc(~"100vh - 50px"); // less旧版本的写法
  height: calc(100vh - 50px);
}
</style>